home *** CD-ROM | disk | FTP | other *** search
/ Amiga Tools 4 / Amiga Tools 4.iso / tools / internet-tools / connect-line / cl / devkit / c / include / cl_mailmaster.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-11-12  |  4.5 KB  |  131 lines

  1. #ifndef _CL_MAILMASTER_H
  2. #define _CL_MAILMASTER_H
  3.  
  4. #ifndef _CL_MAIL_H
  5. #include <cl/cl_mail.h>
  6. #endif
  7.  
  8. /*
  9. **   cl_mailmaster.h 
  10. **   ---------------
  11. **
  12. **   Spezifikationen zur Benutzung der
  13. **   "cl_mailmaster.library"
  14. **
  15. */
  16.  
  17. //
  18. // AmigaOS library specifications.
  19. // Do not use yourself!
  20. //
  21.  
  22. #define CLMAILMASTERNAME "cl_mailmaster.library"
  23. #define CLMAILMASTERVERSION 6
  24.  
  25. extern struct Library *CLMailMasterBase;
  26.  
  27. //
  28. // Function prototypes
  29. //
  30.  
  31. #ifndef _NOPROTOS
  32.  
  33. #pragma libcall CLMailMasterBase CLMM_SendFile 1e A9803
  34. #pragma tagcall CLMailMasterBase CLMM_SendFileTags 1e A9803
  35. #pragma libcall CLMailMasterBase CLMM_MailSysList 24 0
  36. #pragma libcall CLMailMasterBase CLMM_GetMailLib 2a 801
  37. #pragma libcall CLMailMasterBase CLMM_AllocFiles 30 0802
  38. #pragma libcall CLMailMasterBase CLMM_FreeFiles 36 801
  39. #pragma libcall CLMailMasterBase CLMM_FlushAll 3c 0
  40. #pragma libcall CLMailMasterBase CLMM_Batch 42 0802
  41. #pragma libcall CLMailMasterBase CLMM_BoxInfo 48 9802
  42. #pragma libcall CLMailMasterBase CLMM_TestNetLogin 4e 9802
  43. #pragma libcall CLMailMasterBase CLMM_HandleNetcall 54 BA9804
  44. #pragma libcall CLMailMasterBase CLMM_DoNetcall 5a B10A9806
  45. #pragma libcall CLMailMasterBase CLMM_QuerySpecial 60 9802
  46. #pragma libcall CLMailMasterBase CLMM_GetMailSysList 66 0
  47. #pragma libcall CLMailMasterBase CLMM_GetMailSysIndex 6c 801
  48.  
  49. ULONG CLMM_SendFile( STRPTR from, STRPTR *destinations, struct TagItem *tags );
  50. ULONG CLMM_SendFileTags( STRPTR from, STRPTR *destinations, ... );
  51.  
  52. APTR CLMM_MailSysList( void );
  53. struct Library * CLMM_GetMailLib( STRPTR netname );
  54. int CLMM_AllocFiles( struct Box *box, int flags );
  55. int CLMM_FreeFiles( struct Box *box );
  56. void CLMM_FlushAll( void );
  57. void CLMM_Batch( struct Box *box, int flags );
  58. void CLMM_BoxInfo( struct Box *box, CLMail_BoxInfo *boxinfo );
  59.  
  60. ULONG CLMM_TestNetLogin( STRPTR loginstring, STRPTR mailsysbuffer );
  61. ULONG CLMM_DoNetcall( APTR serhandle, STRPTR portid, struct Box *box, ULONG retries, ULONG flags, struct PortInfo *pi );
  62. ULONG CLMM_HandleNetcall( APTR serhandle, STRPTR portid, STRPTR mailsys, struct PortInfo *pi );
  63.  
  64. STRPTR CLMM_QuerySpecial( struct Box *box, STRPTR netname );
  65.  
  66. STRPTR * CLMM_GetMailSysList( void );
  67. LONG CLMM_GetMailSysIndex( STRPTR netname );
  68.  
  69. #endif
  70.  
  71. //
  72. // Tag Values
  73. //
  74.  
  75. #define CLMM_TAGBASE (TAG_USER+0x2532)
  76.  
  77. #define CLMMT_SourceFile     (CLMM_TAGBASE+1)        // STRPTR, filename
  78. #define CLMMT_SourceBuffer    (CLMM_TAGBASE+2)        // APTR, memory buffer
  79. #define CLMMT_SourceLength  (CLMM_TAGBASE+3)        // ULONG, length
  80. #define CLMMT_SourceCharset (CLMM_TAGBASE+10)        // ULONG, see CLMM_CS_#? below
  81.  
  82. #define CLMMT_CommentFile     (CLMM_TAGBASE+4)        // STRPTR, filename
  83. #define CLMMT_CommentBuffer    (CLMM_TAGBASE+5)        // APTR, memory buffer
  84. #define CLMMT_CommentLength (CLMM_TAGBASE+6)        // ULONG, length
  85. #define CLMMT_CommentCharset (CLMM_TAGBASE+11)        // ULONG, see CLMM_CS_#? below
  86.  
  87. #define CLMMT_ShortComment    (CLMM_TAGBASE+7)        // STRPTR, short file comment
  88. #define CLMMT_Subject        (CLMM_TAGBASE+8)        // STRPTR, subject line
  89. #define CLMMT_ContentsType    (CLMM_TAGBASE+9)        // ULONG, see CLMM_CTF_#? below
  90.  
  91. #define CLMMT_Priority        (CLMM_TAGBASE+12)        // ULONG, mail priority (0/10)
  92. #define CLMMT_ExportName     (CLMM_TAGBASE+14)        // STRPTR, informational file name
  93.  
  94. #define CLMMT_External        (CLMM_TAGBASE+13)        // BOOL, msg contents are stored externally
  95. #define CLMMT_LocalOnly        (CLMM_TAGBASE+15)        // BOOL, store msg locally only
  96.  
  97. #define CLMMT_HeaderList    (CLMM_TAGBASE+16)        // HH, additional header lines
  98.  
  99. #define CLMMT_SortinPri        (CLMM_TAGBASE+17)        // ULONG, sortin priority (Ascii-Char only); Defaults to 'A' (highest priority)
  100.  
  101. //
  102. // Flags
  103. //
  104.  
  105. #define CLMM_CTF_TEXT     0        // Msgtype is text
  106. #define CLMM_CTF_BIN    1        // Msgtype is binary
  107.  
  108. #define CLMM_CS_ISO        0         // Charset is ISO, internally converted to IBM850
  109. #define CLMM_CS_IBM        1        // Charset is IBM, not converted
  110.  
  111. #define CLMM_MP_STD        0        // Mail priority: standard routing
  112. #define CLMM_MP_FAST    10        // Mail priority: fast routing if possible
  113.  
  114. //
  115. // Errors
  116. //
  117.  
  118. #define CLMME_OK        0
  119. #define CLMME_NOSOURCE    1            // no source specification
  120. #define CLMME_CANTOPENOUTFILE 2        // can't open outfile file
  121. #define CLMME_ARGS        3            // Argumente im Arsch
  122. #define CLMME_CANTOPENSOURCEFILE 4    // can't open input file
  123. #define CLMME_CANTOPENCOMMENTFILE 5 // can't open comment file
  124. #define CLMME_WRITEERROR 6            // Filesystem reported some write error...
  125. #define CLMME_NODEST 7                // no destinations?!?
  126. #define CLMME_READERROR_COMMENT 8    // DOS Error during read of comment
  127. #define CLMME_RENAMEERR 9            // DOS Error while renaming from PRESPOOL to SPOOL
  128. #define CLMME_READERROR_BODY 10        // DOS Error during read of body
  129.  
  130. #endif
  131.